package com.kkwrite.regimen.common.entity.dto.income;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

import com.kkwrite.regimen.common.entity.dto.module.ModuleItemDTO;

/**
 * 用户收益 DTO
 *
 * @author jinying
 * 
 */
public class PageableIncomeDTO implements Serializable {
	private static final long serialVersionUID = 4925395278054516084L;
	private Integer totalPages;
	private Long totalElements;
	private List<IncomeDTO> recordList;
	
	public IncomeDTO creatIncomeDto(){
		return new IncomeDTO();
	}

	public Integer getTotalPages() {
		return totalPages;
	}

	public void setTotalPages(Integer totalPages) {
		this.totalPages = totalPages;
	}

	public Long getTotalElements() {
		return totalElements;
	}

	public void setTotalElements(Long totalElements) {
		this.totalElements = totalElements;
	}

	public List<IncomeDTO> getRecordList() {
		return recordList;
	}

	public void setRecordList(List<IncomeDTO> recordList) {
		this.recordList = recordList;
	}

	@Override
	public String toString() {
		return "PageableIncomeDTO [totalPages=" + totalPages
				+ ", totalElements=" + totalElements + ", recordList="
				+ recordList + "]";
	}

	public class IncomeDTO {
		private Long incomeId;
		private Long userId;
		private String itemName;
		private String nickName;
		private String usernameCn;
		private String usernameEn;
		private String avatarUrl;
		private Double orderAmount;
		private Double incomeAmount;
		private String orderCode;
		private Short incomeSourceType;
		private Short incomeStatus;
		private String incomeDealStaff;
		private Date incomeDealTime;
		private LocalDateTime createTime;


		public Long getIncomeId() {
			return incomeId;
		}

		public void setIncomeId(Long incomeId) {
			this.incomeId = incomeId;
		}

		public Long getUserId() {
			return userId;
		}

		public void setUserId(Long userId) {
			this.userId = userId;
		}

		public String getNickName() {
			return nickName;
		}

		public void setNickName(String nickName) {
			this.nickName = nickName;
		}

		public String getUsernameCn() {
			return usernameCn;
		}

		public void setUsernameCn(String usernameCn) {
			this.usernameCn = usernameCn;
		}

		public String getUsernameEn() {
			return usernameEn;
		}

		public void setUsernameEn(String usernameEn) {
			this.usernameEn = usernameEn;
		}

		public String getAvatarUrl() {
			return avatarUrl;
		}

		public void setAvatarUrl(String avatarUrl) {
			this.avatarUrl = avatarUrl;
		}

		public Double getOrderAmount() {
			return orderAmount;
		}

		public void setOrderAmount(Double orderAmount) {
			this.orderAmount = orderAmount;
		}

		public Double getIncomeAmount() {
			return incomeAmount;
		}

		public void setIncomeAmount(Double incomeAmount) {
			this.incomeAmount = incomeAmount;
		}

		public String getOrderCode() {
			return orderCode;
		}

		public void setOrderCode(String orderCode) {
			this.orderCode = orderCode;
		}

		public Short getIncomeSourceType() {
			return incomeSourceType;
		}

		public void setIncomeSourceType(Short incomeSourceType) {
			this.incomeSourceType = incomeSourceType;
		}

		public Short getIncomeStatus() {
			return incomeStatus;
		}

		public void setIncomeStatus(Short incomeStatus) {
			this.incomeStatus = incomeStatus;
		}

		public String getIncomeDealStaff() {
			return incomeDealStaff;
		}

		public void setIncomeDealStaff(String incomeDealStaff) {
			this.incomeDealStaff = incomeDealStaff;
		}

		public Date getIncomeDealTime() {
			return incomeDealTime;
		}

		public void setIncomeDealTime(Date incomeDealTime) {
			this.incomeDealTime = incomeDealTime;
		}

		public LocalDateTime getCreateTime() {
			return createTime;
		}

		public void setCreateTime(LocalDateTime createTime) {
			this.createTime = createTime;
		}

		public String getItemName() {
			return itemName;
		}

		public void setItemName(String itemName) {
			this.itemName = itemName;
		}

		@Override
		public String toString() {
			return "IncomeDTO [incomeId=" + incomeId + ", userId=" + userId
					+ ", itemName=" + itemName + ", nickName=" + nickName
					+ ", usernameCn=" + usernameCn + ", usernameEn="
					+ usernameEn + ", avatarUrl=" + avatarUrl
					+ ", orderAmount=" + orderAmount + ", incomeAmount="
					+ incomeAmount + ", orderCode=" + orderCode
					+ ", incomeSourceType=" + incomeSourceType
					+ ", incomeStatus=" + incomeStatus + ", incomeDealStaff="
					+ incomeDealStaff + ", incomeDealTime=" + incomeDealTime
					+ ", createTime=" + createTime + "]";
		}


		 

	}
}
